﻿@model GzucmAspBigJob.Models.User
@{
    ViewBag.Title = "Index";
    Layout = null;
}

<h2>Index</h2>
<h3>@ViewBag.CurUser.Account</h3>

@using (Html.BeginForm("UploadImage", "User", FormMethod.Post,
  new { enctype = "multipart/form-data" }))
{
    <input type="file" name="head_photo" value="上传头像" />
    <input type="submit" value="点我上传" />
}

头像：<img src="@ViewBag.CurUser.PhotoUrl" /><br/>
<a href="@Url.Action("Logout","User")">注销</a>